package com.bdqn.service.impl;

import com.bdqn.mapper.PatientMapper;
import com.bdqn.pojo.Patient;
import com.bdqn.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PatientServiceImpl implements PatientService {
    @Autowired
    PatientMapper patientMapper;
    @Override
    public int addPatient(Patient patient) {
        return patientMapper.addPatient(patient);
    }

    @Override
    public Patient getPatient(String idCard) {
        return patientMapper.getPatient(idCard);
    }
}
